#pragma once

#include "VComplexWidget.h"

enum
{
    LANGUAGE_SCROLLLEFT  = -1,
    LANGUAGE_SCROLLSTOP  = 0,
    LANGUAGE_SCROLLRIGHT = 1
};

class CRotate;

class VLanguageEffect :
    public VComplexWidget
{
public:
    VLanguageEffect(void);
    ~VLanguageEffect(void);

public:
    void init();

public:
    bool render() const;
    void animate();
    void move(int x, int y);
    void resize(int w, int h);

public:
    void scroll(int direction);

protected:
    CRotate* _rotation;
};
